package com.dubbo;

import java.util.regex.Pattern;

public class StaticConstants {

    public static final String STOP_MARK = "stop";




  /*  *//*微信appId appsecret 签名的url*//*
    public static final String APPID = "wx3ae5a0077600365f"; // 应用ID
    public static final String APPSECRET = "907d1ec9e4569cdee542411286368bce"; // (应用密钥)
    public static final String SIGN_URL = "http://47.92.104.86:7001/weixin/html/main.html"; // 签名页面地址 */
    // /*微信appId appsecret 签名的url*/
    public static final String APPID = "wxda8434868c14d165"; // 应用ID
    public static final String APPSECRET = "df88b9a98584279673eda295d831abc6"; // (应用密钥)
    public static final String SIGN_URL = "http://www.xiaoyan365.com/fsd_weixin/html/pageHome.html"; // 签名页面地址
    public static final String SHARE_SIGN_URL = "http://www.xiaoyan365.com:7001/weixin/html/main.html"; // 签名页面地址

    /*system*/
    public static final int DELETED = 0;
    public static final int NOT_DELETED = 1;
    public static final String PASSWORD_SALT = "3454sdfgsdf!@#$@#";
    public static final Pattern PASSWORD_REGEX_PATTERN =
            Pattern.compile("^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,13}$");
    public static final String PASSWORD_ENCODE_SECRET_KEY = "cf410f84904a44cc8a7f48fc4134e8f9";
    public static final String DEFAULT_PASSWORD = "123456";
    public static final long SYSTEM_USER_ID = 1;
    public static final int NOT_REPORT = 0;
    public static final String COOKIE_TOKEN_NAME = "token";
    public static final int UN_KNOW_ERROR_CODE = -10000;

    /*ehcache*/
    public static final String EHCACHE_CURRENT_USER = "EHCACHE_CURRENT_USER";
    public static final String EHCACHE_CURRENT_STUDENT = "EHCACHE_CURRENT_STUDENT";
    public static final String EHCACHE_NOT_FIRST_ACCESS_USER = "EHCACHE_NOT_FIRST_ACCESS_USER";
    public static final String EHCACHE_SHIRO_SUBJECT = "EHCACHE_SHIRO_SUBJECT";
    public static final String EHCACHE_WEIXIN_TICKET = "EHCACHE_WEIXIN_TICKET";
    public static final String EHCACHE_WEIXIN_TICKET_KEY = "EHCACHE_WEIXIN_TICKET_KEY";

    /*smsCode*/
    public static final String SMS_CODE_BUSINESS_TYPE_REGISTER = "register";
    public static final String SMS_CODE_BUSINESS_TYPE_CHANGE_PAYPASS = "changePayPassword";
    public static final String SMS_CODE_BUSINESS_TYPE_FIND_PASSWORD = "findPassword";

    /*Farm*/
    public static final Integer FLOW_COUNT_PER_EGG = 10;
    public static final Integer MIN_FLOW_COUNT_FOR_MASTER = 1;
    public static final Integer MAX_FLOW_COUNT_FOR_FRIEND = 3;
    public static final Integer STEAL_EGG_WAIT_TIME_MILLI_SECOND = 60 * 15 * 1000;
    public static final String FLOW_ACTIVITY_NAME_ARRIVAL = "签到";
    public static final String FLOW_ACTIVITY_NAME_RED_PACKAGE = "红包";
    public static final String FLOW_ACTIVITY_NAME_ALIVECHICKEN = "复活小鸡";
    public static final String FLOW_POOL_TO_PHONE = "流量充值";
    public static final String FLOW_ACTIVITY_NAME_RED_PACKAGE_FORGROUP = "群红包";
    public static final Long FLOW_PLATEFORM_ID = 0L; // 流量明细保存的平台ID 常量
    public static final int FLOW_FARM_ALIVECHICKEN_USE_FLOW = 30; // 用户复活小鸡使用的流量数
    /**
     * 小鸡生命状态
     */
    public static final int CHICK_LIFE_STATUS_NORMAL = 1;
    public static final int CHICK_LIFE_STATUS_DEAD = 2;
    /**
     * 小鸡水和食物的常量
     */
    public static final int CHICK_FEED_WATER_TIMES = 3;

    public static final int CHICK_FEED_FOOD_TIMES = 2;

    /**
     * 探缘
     */
    public static final Integer FIND_LOT_STATUS_LOVE = 1;

    public static final Integer FIND_LOT_STATUS_HATE = 0;

    /**
     * 签到常量
     */
    public static final Integer SIGN_DAYS_FIVE = 5;

    public static final Integer SIGN_DAYS_FIFTEEN = 15;
    public static final Integer SIGN_DAYS_THIRTY = 30;
    public static final Integer SIGN_DAYS_FIVE_PRIZE = 10;
    public static final Integer SIGN_DAYS_FIFTEEN_PRIZE = 30;
    public static final Integer SIGN_DAYS_THIRTY_PRIZE = 100;

    /**
     * 消息通知相关常量
     */
    public static final String NOTIFY_TYPE_FLOW_INFO = "flowInfo";

    public static final String NOTIFY_TYPE_CHANNERL_INFO = "channelInfo";
    public static final String NOTIFY_TYPE_FARM_INFO = "farmInfo";
    public static final String NOTIFY_TYPE_FIND_FRIEND_INFO = "findFriendInfo";

    /*user*/
    public static final int ACTIVE_USER_MAX_ACCESS_DAYS_INTERVAL = 3;

    /*社交隐私常量*/
    public static final int HX_USER_SHOW_SCOPE_PRIVATE = 0;
    public static final int HX_USER_SHOW_SCOPE_FRIEND = 1;
    public static final int HX_USER_SHOW_SCOPE_PUBLIC = 2;
    /*ftp*/
    public static final String ZHIHUI_FTP_SERVER_ADDRESS_PLACE_HOLDER =
            "${ZHIHUI_FTP_SERVER_ADDRESS}";

    public static final int SEND_SMS_TIMES_LIMIT = 10;
    public static int PHONE_MASTER_JETTY_PORT = 8001;
    public static int PHONE_MASTER_NETTY_PORT = 9001;
    public static int PHONE_SLAVE_JETTY_PORT = 8006;
    public static int PHONE_SLAVE_NETTY_PORT = 9006;
    public static String PHONE_CONTENT_PATH = "/ph";
    public static int PLATFORM_JETTY_PORT = 8002;
    public static int PLATFORM_NETTY_PORT = 9002;
    public static String PLATFORM_CONTENT_PATH = "/pm";
    public static int SCHOOL_JETTY_PORT = 8003;
    public static int SCHOOL_NETTY_PORT = 9003;
    public static String SCHOOL_CONTENT_PATH = "/sm";
    public static int GATEWAY_JETTY_PORT = 8004;
    public static int GATEWAY_NETTY_PORT = 9004;
    public static String GATEWAY_CONTENT_PATH = "/gw";
    public static int LEAGUE_JETTY_PORT = 8005;
    public static int LEAGUE_NETTY_PORT = 9005;
    public static String LEAGUE_CONTENT_PATH = "/lg";
    public static int FSDPC_JETTY_PORT = 8007;
    public static int FSDPC_NETTY_PORT = 9007;
    public static String FSDPC_CONTENT_PATH = "/fsd_api";


    public static String SLAVE_MARK_FILE = "/opt/business-env/slave";
    public static String TEST_SERVER_IP = "111.225.222.228";
    public static String PRODUCE_SERVER_IP = "47.92.104.86";


    /*跨域域名数组*/
    public static String[] ALLOW_DOMAINS = {
            "http://111.225.222.228:7001",
            "http://111.225.222.228:80",
            "http://111.225.222.228",
            "http://xiaoyan.epaker.com:7001",
            "http://xiaoyan.epaker.com",
            "http://www.xiaoyan365.com",
            "http://www.test.and361.com:7001",
            "http://www.test.and361.com:80",
            "http://www.test.and361.com",
            "http://test.and361.com:7001",
            "http://47.92.104.86:7001",
            "http://47.92.104.86",
            "http://localhost:63342",
            "http://172.29.19.1",
            "http://192.168.1.104"
    };

    /*文章分享静态页url地址*/
    public static String ARTICLE_SHARE_URL = "http://xiaoyan.epaker.com:7001/appweb/html/share.html";

    /*LOGGER NAME*/
    public static final String RETRY_FAIL_LOGGER = "RETRY_FAIL_LOGGER";
}
